package com.solo.strategy;

import com.solo.strategy.bean.Duck;
import com.solo.strategy.bean.MallardDuck;
import com.solo.strategy.impl.FlyNoWay;

public class DuckSimulator {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Duck duck = new MallardDuck();
		duck.performFly();
		duck.performQuack();
		duck.setFlyBehavior(new FlyNoWay());
		duck.performFly();
	}

}
